---
layout: single
property_name: will-change
---

<section id="will-change" class="property">
  <header class="property-header">
    <nav class="property-links">
      <a class="property-links-direct" href="{{site.url}}/property/will-change/" data-property-name="will-change" data-tooltip="Single page for this property">Permalink</a>
      <a class="property-share" data-tooltip="Share on Twitter or Facebook" data-property-name="will-change">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/CSS/will-change" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="property-name">
      <a href="#will-change"><span>#</span>will-change</a>
    </h2>
    <div class="property-description">
      <p>Defines which properties are expected to change in the future (either through CSS or JavaScript).</p>

    </div>

  </header>





    <section class="example">
      <header class="example-header">
        <p class="example-name">
            <code class="example-default" data-tooltip="This is the property's default value">default</code>


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="will-change: auto;">will-change: auto;</code>
        </p>
        <div class="example-description">
          <p><strong>Doesn&#39;t</strong> tell the browser to optimize <em>any</em> property.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div will-change " id="will-change-auto">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#will-change-auto{ will-change:auto;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="will-change: scroll-position;">will-change: scroll-position;</code>
        </p>
        <div class="example-description">
          <p>Tells the browser to optimize for the element&#39;s <strong>scroll position</strong>, as it might change in the future.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div will-change " id="will-change-scroll-position">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#will-change-scroll-position{ will-change:scroll-position;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="will-change: contents;">will-change: contents;</code>
        </p>
        <div class="example-description">
          <p>Tells the browser to optimize for the element&#39;s <strong>contents</strong>, as it might change in the future.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div will-change " id="will-change-contents">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#will-change-contents{ will-change:contents;}</style>
    </section>
    <section class="example">
      <header class="example-header">
        <p class="example-name">


          <code class="example-value" data-tooltip="Click to copy" data-clipboard-text="will-change: box-shadow;">will-change: box-shadow;</code>
        </p>
        <div class="example-description">
          <p>You can specify any other CSS <strong>property</strong>. For example, this tells the browser to optimize for the element&#39;s <strong>box-shadow</strong>, as it might change in the future.</p>

        </div>
      </header>

      <aside class="example-preview">
        <div class="example-browser"><i></i><i></i><i></i></div>
        <div class="example-output">
          <div class="example-output-div will-change " id="will-change-box-shadow">Hello world</div>
        </div>
      </aside>
          <style type="text/css">#will-change-box-shadow{ will-change:box-shadow;}</style>
    </section>

</section>
